<form name="offerForm" class="pure-form pure-form-aligned" novalidate autocomplete="off">
    <fieldset>
        <legend>编辑offer信息</legend>

        <div class="pure-control-group">
            <label>offerName</label>
            <input type="text" name="offerName" ng-model="offer.offerName" required/>
        </div>

        <div class="pure-control-group">
            <label>icon</label>
            <input type="text" name="icon" ng-model="offer.icon" required/>
        </div>

        <div class="pure-control-group">
            <label>预览地址</label>
            <input type="text" name="previewurl" ng-model="offer.previewurl" required/>
        </div>

        <div class="pure-control-group">
            <label>点击链接</label>
            <input type="text" name="clkurl" ng-model="offer.clkurl" required/>
        </div>

        <div class="pure-control-group">
            <label>投放国家</label>
            <!--<input type="text" name="countries" ng-model="offer.countries" required />-->
            <select id="putCountries" name="countries" class="chosen-select" ng-model="offer.countriesSelect"
                    multiple>
                <!--<option  value="{{offer.countries}}">{{offer.countries}}</option>-->
            </select>
        </div>

        <div class="pure-control-group">
            <label>描述</label>
            <input type="text" name="description" ng-model="offer.description" required/>
        </div>

        <div class="pure-control-group">
            <label>操作系统</label>
            <!--<input type="text" name="os" ng-model="offer.os" required />-->
            <select name="os" class="chosen-select" ng-model="offer.os" ng-options="os.key as os.name for os in osList"
                    required>
                <!--<option ng-repeat="x in osList" value="{{x.key}}">{{x.name}}</option>-->
            </select>
            <span class="val-error" ng-show="offerForm.os.$touched && offerForm.os.$invalid">
				请选择操作系统
			</span>
        </div>


        <div class="pure-control-group">
            <label>素材</label>
            <input type="text" name="creatives" ng-model="offer.creatives" required/>
        </div>

        <div class="pure-control-group">
            <label>接入单价</label>
            <input type="text" name="accessPrice" ng-model="offer.accessPrice" required/>
        </div>

        <div class="pure-control-group">
            <label>投放单价</label>
            <input type="text" name="putPrice" ng-model="offer.putPrice" required/>
        </div>

        <div class="pure-control-group">
            <label>包名</label>
            <input type="text" name="pkgName" ng-model="offer.pkgName" required/>
        </div>

        <div class="pure-control-group">
            <label>应用市场</label>
            <input type="text" name="market" ng-model="offer.market" required/>
        </div>

        <div class="pure-control-group">
            <label>广告投放位置</label>
            <!--<input type="text" name="adposition" ng-model="offer.adposition" required />-->
            <select name="adposition" class="form-control pure-u-21-24" ng-model="offer.adposition"
                    ng-options="adposition.key as adposition.name for adposition in adpositionList" required>
                <!--<option ng-repeat="x in osList" value="{{x.key}}">{{x.name}}</option>-->
            </select>
        </div>
        <div class="pure-control-group">
            <label>是否激励</label>
            <!--<input type="text" name="incent" ng-model="offer.incent" required />-->
            <select name="incent" class="form-control pure-u-21-24" ng-model="offer.incent"
                    ng-options="incent.key as incent.name for incent in incentList" required>
            </select>
        </div>
        <div class="pure-control-group">
            <label>激励类型</label>
            <!--<input type="text" name="incentType" ng-model="offer.incentType" required />-->
            <select name="incentType" class="form-control pure-u-21-24" ng-model="offer.incentType"
                    ng-options="incentType.key as incentType.name for incentType in incentTypeList" required>
            </select>
        </div>
        <div class="pure-control-group">
            <label>排序</label>
            <input type="text" name="sort" ng-model="offer.sort" required/>
        </div>

        <div class="pure-control-group">
            <label>广告主id</label>
            <input type="text" name="advertId" ng-model="offer.advertId" required/>
        </div>
        <div class="pure-control-group">
            <label>每日限量</label>
            <input type="text" name="dailyLimit" ng-model="offer.dailyLimit" required/>
        </div>

        <div class="pure-controls">
            <input type="submit" value="保存" class="pure-button pure-button-primary"
                   ng-click="submitForm()"/>
            <a href="#/offer/list" class="pure-button">取消</a>
        </div>

    </fieldset>
</form>